# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=delldrac
pkgver=0.1a
pkgrel=4
groups=('blackarch' 'blackarch-scanner' 'blackarch-cracker')
pkgdesc='DellDRAC and Dell Chassis Discovery and Brute Forcer.'
url='https://www.trustedsec.com/september-2012/owning-dell-drac-awesome-hack/'
arch=('any')
license=('custom')
depends=('python2')
source=('https://www.trustedsec.com/files/delldrac.py' 'LICENSE')
sha512sums=('8d588f7234028194b8fb7d4bf467e656be6b962c625cfdc5a94b2ffd347f28f31a9dc1f1789e319cdadecea423370d5dc9987490d413aa365cfbe72bc8c9580c'
            '67cd6bd32087e8040fb4d663d23c1c1eefacfeed44deb3ea76db8a9b2b982a192464fb2f8202bbbe1ef6f9add79d0efd407b6ddeb0606d0a8c48eba02ac5e985')

prepare() {
  sed -i 's|/usr/bin/env python|/usr/bin/env python2|' delldrac.py
}

package() {
  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

